/*
 * socket_service.h
 *
 *  Created on: 2016-2-27
 *      Author: ZhangXiyin
 */

#ifndef SOCKET_SERVICE_H_
#define SOCKET_SERVICE_H_
#include <boost/asio/io_service.hpp>
#include "basic/singleton.hpp"
namespace eyas{
namespace thread{

class service : public eyas::basic::singleton<service> {
public:
	service();
	virtual ~service();
private:
	int concurrent_;
	boost::asio::io_service io_service_;

public:
	int concurrent();
	boost::asio::io_service& io_service();
};

}
}
#endif /* SOCKET_SERVICE_H_ */
